package com.example.demo.utils;

public class Test {
        public static final String pattern="^.*[a-zA-Z]+_+\\d{4,}$";
        public static final String pattern1="^\\d{4,}$";
        public static void main(String[] args) {
            String pwd="AAAwbdfdfadsdfc_0922";

            System.out.println(pwd+":"+pwd.matches(pattern));
        }
    }

